package com.lnking.lnkingplace.controller;


import com.lnking.common.http.ReturnResult;
import com.lnking.lnkingplace.model.request.place.PlaceCheckConfigRequest;
import com.lnking.lnkingplace.service.IPlaceCheckConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sn
 * @since 2022-09-20
 */
@RestController
@Api(tags = "核酸时间配置")
@RequestMapping("/place-check-config")
public class PlaceCheckConfigController {

    @Autowired
    IPlaceCheckConfigService placeCheckConfig;

    @ApiOperation("场所核算时间配置")
    @PostMapping("/set")
    public ReturnResult placeCheckConfig(@RequestBody PlaceCheckConfigRequest params){
        placeCheckConfig.placeCheckConfig(params);
        return ReturnResult.success();
    }


//    @ApiOperation("场所核算时间配置")
//    @PostMapping("/list")
//    public ReturnResult list(@RequestBody PlaceCheckConfigSearchRequest params){
//        placeCheckConfig.pa(params);
//        return ReturnResult.success();
//    }
}
